<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>主页面</title>
	<%@ include file="/inc.jsp"%>
</head>
<body class="easyui-layout">
	<div data-options="region:'north',border:false,collapsed:true" style="height:60px;padding:10px">
		<center><h1>集中开票系统数据查询(测试版)</h1></center>
	</div>
	<div data-options="region:'west',split:true,collapsed:false,title:'菜单栏'" style="width:150px;padding:10px;">
	<a href="javascript:add(1)">更新配置文件</a>
	<br>
<!--  
	<a href="javascript:add(2)">基本信息</a>
	<br>
-->	
	<a href="javascript:add(3)">信息一览表</a>
	<br>	
	<a href="javascript:add(4)">发票查询</a>
	<br>	
	</div>
	<div data-options="region:'east',split:true,collapsed:true,title:'East'" style="width:100px;padding:10px;">east region</div>
	<div data-options="region:'south',border:false,collapsed:true" style="height:50px;padding:10px;">south region</div>
	<div data-options="region:'center'" >
		<div  id="tt" class="easyui-tabs" data-options="fit:true,border:false,plain:true">
			<div title="信息一览表" data-options="closable:false" style="overflow:hidden">  
	            <iframe id="mainFrame" scrolling="auto" frameborder="0"  src="ShowReport.wx?PAGEID=tabYhxxinfo" style="width:100%;height:100%;"></iframe>  
	        </div>	
			<div title="发票查询" data-options="closable:false" style="overflow:hidden">  
	            <iframe id="mainFrame" scrolling="auto" frameborder="0"  src="ShowReport.wx?PAGEID=tabFpxxinfo" style="width:100%;height:100%;"></iframe>  
	        </div>	 	                
<!-- 
			<div title="Iframe" data-options="closable:false" style="overflow:hidden">  
	            <iframe id="mainFrame" scrolling="yes" frameborder="0"  src="ShowReport.wx?PAGEID=repYhjbxx" style="width:100%;height:100%;"></iframe>  
	        </div>  
 -->	        	        
		</div>
	</div>
<script type="text/javascript">  
        function add(id){ 
        	var strContent='';
        	var strTitle='';
        	if(id=='1'){
        		strTitle = '更新配置文件';
        		strContent = '<div style="padding:10px;margin:0 0 0 0;"><iframe scrolling="auto" frameborder="0"  src="ShowReport.wx?ACTIONTYPE=updateconfig" style="width:100%;height:100%;margin:0 0 0 0;"></iframe></div>';
        	}
        	
        	if(id=='2'){
        		strTitle = '用户基本信息表';
        		//strContent = '<div style="padding:10px;margin:0 0 0 0;"><iframe scrolling="auto" frameborder="0"  src="ShowReport.wx?PAGEID=repYhjbxx" style="width:100%;height:100%;margin:0 0 0 0;"></iframe></div>';
        		strContent = '<div style="padding:10px;margin:0 0 0 0;"><iframe scrolling="auto" frameborder="0"  src="ShowReport.wx?ACTIONTYPE=updateconfig" style="width:100%;height:100%;margin:0 0 0 0;"></iframe></div>';
        	}  
        	
        	if(id=='3'){
        		strTitle = '用户信息一览表';
        		//strContent = '<div style="padding:10px;margin:0 0 0 0;"><iframe scrolling="auto" frameborder="0"  src="ShowReport.wx?PAGEID=tabYhxxinfo" style="width:100%;height:100%;margin:0 0 0 0;"></iframe></div>';
        		strContent = '<div style="padding:10px;margin:0 0 0 0;"><iframe scrolling="auto" frameborder="0"  src="ShowReport.wx?ACTIONTYPE=updateconfig" style="width:100%;height:100%;margin:0 0 0 0;"></iframe></div>';
        	}            	
        	if(id=='4'){
        		strTitle = '发票查询';
        		strContent = '<div style="padding:10px;margin:0 0 0 0;"><iframe scrolling="auto" frameborder="0"  src="ShowReport.wx?PAGEID=tabFpxxinfo" style="width:100%;height:100%;margin:0 0 0 0;"></iframe></div>';
        	}            	
     	
        	
            $('#tt').tabs('add',{  
                title: strTitle,  
                content: strContent,  
                closable: true  
            });  

        }  
 
</script> 
</body>
</html>